"""
业务权限字符串常量池

任何 Python 文件（service/crud/util/测试）想硬编码权限码时，请直接 import 本模块，
避免把数据库依赖带进来，防止循环 import。
"""

from enum import Enum


# ---------- 系统管理 ----------
class SystemPerm(str, Enum):
	USER_MANAGE = "system:user:manage"
	ROLE_MANAGE = "system:role:manage"
	PERM_MANAGE = "system:permission:manage"
	AUDIT_VIEW = "system:audit:view"


# ---------- 数据分析 ----------
class AnalyticsPerm(str, Enum):
	VIEW = "analytics:view"


# ---------- 遥测数据 ----------
class TelemetryPerm(str, Enum):
	VIEW = "telemetry:view"
	EDIT = "telemetry:edit"


# ---------- 设备管理 ----------
class DevicePerm(str, Enum):
	DEVICE_MANAGE = "device:manage"


# ---------- 文件管理 ----------
class FilePerm(str, Enum):
	FILE_MANAGE = "file:manage"


# ---------- 报表管理 ----------
class ReportPerm(str, Enum):
	VIEW = "report:view"
	EXPORT = "report:export"
